package com.hy.demo.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.hy.demo.R;

/**
 * title 无
 * author heyan
 * time 19-8-15 上午9:59
 * desc 无
 */
public class MainActivity1 extends MenuActivity {
    private Bundle mArgs;

    @Nullable
    @Override
    protected Bundle getArgs() {
        return mArgs;
    }

    @Override
    public void initData() {
        mArgs = new Bundle();
        mArgs.putInt(ARG_XMLID, R.xml.menu_main);
        mArgs.putInt(ARG_TITLEID, R.string.appName);
        super.initData();
    }

    @Override
    protected void configBack() {
        //屏蔽标题栏返回图标
    }

    @Override
    public void onBackPressed() {
        if (getCurApp() != null)
            getCurApp().exit();
    }
}
